#pragma once

#include <QWidget>
#include <QFile>
#include <QFileInfo>
#include <QThread>
#include <QDateTime>
#include "const.h"
#include "httpcommon.h"
#include "ui_finishitem.h"
#include "pthread.h"
#include "log.h"

class FinishItem : public QWidget
{
    Q_OBJECT

public:
	FinishItem(QString itemID, QString filePath, QString time, int flag, QWidget *parent = Q_NULLPTR);
	~FinishItem();
protected:
	void enterEvent(QEvent *event);
	void leaveEvent(QEvent *event);
	public Q_SLOTS:
	void on_pbOpenDir_clicked();
	void on_pbClear_clicked();
Q_SIGNALS:
	void openDirSignal(QString);
	void clearSignal(QString);
private:
	void initWidget();
private:
    Ui::FinishItem ui;
	QString m_itemID;
	QString m_filePath;
	QString m_time;
	int m_flag;
};
